package utils;

import java.util.ArrayList;

public class MenuImportHelper {

	private MenuImportHelper() {

	}

	public static String[] ProcessRawData(String data) {
		return null;
	}
	
	public static String Cleanup(String rawData)
	{
		String ret = rawData.replace('（', '(');
		ret = ret.replace('）', ')');
		ret = ret.replace('，', ',');
		ret = ret.replace('元', '\0');
		ret = ret.replace(' ', '\0');
		ret = ret.replace(' ', '\0');
		ret = ret.replaceAll("单主荤", ""); 
		return ret;
	}

	public static String[] SplitByDate(String rawData)
	{
		String[] ret = rawData.split("星期[^\\d]*");
		ArrayList<String> temp = new ArrayList<String>();
		for(String item : ret)
		{
			if(item == null || item.trim().length() ==0)
			{
				continue;
			}
			temp.add(item);
		}
		return temp.toArray(new String[0]);
	}
	
	public static String[] SplitDailyDataToMeals(String dailyData){
		return new String[0];
	}
}